package com.vanEngine.tests.tools
{
	import flash.utils.getTimer;

	public class CostTimeCounter
	{
		public function CostTimeCounter()
		{
		}
		
		public static function costTime( func:Function ):void
		{
			var t_time:int = getTimer();
			
			func();
			
			trace( "func cost time:", getTimer() - t_time );
		}
	}
}